import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { PaymentOrder } from './payment-order.entity';
import { AppPaymentOrderController } from './payment-order.controller';
import { AppPaymentOrderService } from './payment-order.service';
import { IosAppPayService } from './ios-app-pay.service';
import { HttpModule } from '@nestjs/axios';
import { AppUserService } from '../user/user.service';
import { AppUser } from '../user/user.entity';
import { FileService } from 'src/modules/system/common/upload/file.service';
import { AppHistoryService } from '../history/history.service';
import { History } from '../history/history.entity';
@Module({
  imports: [
    TypeOrmModule.forFeature([PaymentOrder, AppUser, History]),
    HttpModule.register({
      timeout: 60000,
      maxRedirects: 5,
    }),
  ],
  controllers: [AppPaymentOrderController],
  providers: [
    AppPaymentOrderService,
    IosAppPayService,
    AppUserService,
    FileService,
    AppHistoryService,
  ],
})
export default class AppPaymentOrderModule {}
